Skip to content

Comments

feat, refactor: Caffeine Cache 적용 (redis -> caffeine)#91

Merged
hisonghy merged 3 commits intodevelopfrom
feature/caffeine-cache-90
Apr 10, 2025
Merged

feat, refactor: Caffeine Cache 적용 (redis -> caffeine)#91
hisonghy merged 3 commits intodevelopfrom
feature/caffeine-cache-90

Conversation

@hisonghy
Copy link
Member

@hisonghy hisonghy commented Apr 10, 2025

🌱 관련 이슈

📌 작업 내용 및 특이사항

  • 기존 Redis 로 캐시를 관리하던 방법에서 로컬 캐시 Caffeine 로 캐시를 관리하는 방법으로 변경했습니다
  • Redis를 캐싱 전략으로 사용하면 분산 캐시로써 여러 서버 인스턴스 간에 데이터를 공유할 수 있고, 서버가 수평 확장되거나 다중 인스턴스 환경에서 동일한 캐시 데이터를 사용할 수 있도록 하여 데이터 일관성을 보장하고, 중앙 집중식 캐시 관리가 가능하다는 이점이 있지만, Redis는 네트워크를 통해 접근하기 때문에 로컬 메모리 기반 캐시보다 상대적으로 응답 속도가 느리고, Redis 서버 자체의 운영과 유지 관리가 필요하다는 단점이 존재합니다
  • 또한, 현재 서버를 단일 인스턴스로 운영하고 있어, 인스턴스 간 캐시를 공유해야 하는 상황이 아니기 때문에 분산 캐시의 이점보다는 각 인스턴스 내부에서 빠르게 데이터를 조회할 수 있는 로컬 캐시가 적합하다 판단해 캐시 전략을 Redis에서 Caffeine으로 전환하게 되었습니다
  • 또한, Redis 를 세션 저장소로 사용하고 있기 때문에 역할을 분리하고자 캐시 전략을 Caffeine 으로 변경했습니다

🔍 참고사항

📚 기타

@hisonghy hisonghy added ⚡ feature 새로운 기능 추가 및 수정 🚀 refactor 기능 개선 labels Apr 10, 2025
@hisonghy hisonghy requested a review from myqewr April 10, 2025 07:52
@hisonghy hisonghy self-assigned this Apr 10, 2025
@hisonghy hisonghy changed the title feat: Caffeine Cache 적용 (redis -> caffeine) feat, refactor: Caffeine Cache 적용 (redis -> caffeine) Apr 10, 2025
@hisonghy hisonghy merged commit ecc2757 into develop Apr 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚡ feature 새로운 기능 추가 및 수정 🚀 refactor 기능 개선

Projects

None yet

Development

Successfully merging this pull request may close these issues.

⚡ Redis 기반 캐시 전략에서 Caffeine 로 전환 작업

2 participants